<?php
/* @var $this UserMainModelController */
/* @var $model UserMainModel */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form = $this->beginWidget('CActiveForm', array(
	'id'=>'user-main-model-base-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div>
		<?php echo $form->labelEx($model,'gender'); ?>
		<?php echo $form->textField($model,'gender'); ?>
		<?php echo $form->error($model,'gender'); ?>
	</div>

	<div>
		<?php echo $form->labelEx($model,'birth_year'); ?>
		<?php echo $form->textField($model,'birth_year'); ?>
		<?php echo $form->error($model,'birth_year'); ?>
	</div>

	<div>
		<?php echo $form->labelEx($model,'birth_month'); ?>
		<?php echo $form->textField($model,'birth_month'); ?>
		<?php echo $form->error($model,'birth_month'); ?>
	</div>

	<div>
		<?php echo $form->labelEx($model,'birth_day'); ?>
		<?php echo $form->textField($model,'birth_day'); ?>
		<?php echo $form->error($model,'birth_day'); ?>
	</div>

	<div>
		<?php echo $form->labelEx($model,'name'); ?>
		<?php echo $form->textField($model,'name'); ?>
		<?php echo $form->error($model,'name'); ?>
	</div>

	<div>
		<?php echo $form->labelEx($model,'address_code'); ?>
		<?php echo $form->textField($model,'address_code'); ?>
		<?php echo $form->error($model,'address_code'); ?>
	</div>

	<div>
		<?php echo $form->labelEx($model,'address'); ?>
		<?php echo $form->textField($model,'address'); ?>
		<?php echo $form->error($model,'address'); ?>
	</div>

	<div>
		<?php echo $form->labelEx($model,'avatar'); ?>
		<?php echo $form->textField($model,'avatar'); ?>
		<?php echo $form->error($model,'avatar'); ?>
	</div>


	<div class="row buttons">
		<?php echo CHtml::submitButton('Submit'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->